/**
 * create by young (young2f@outlook.com) on 2023/4/16
 */
'use strict';
module.exports = app => {
    const {router, controller} = app;
    router.post('/api/user/login', controller.user.login);
    router.post('/api/user/register', controller.user.register);
    router.post('/api/user/find', controller.user.findUser);
    router.post('/api/user/find/all', controller.user.findUsers);
    router.post('/api/user/find/page', controller.user.findUsersByPage);
    router.post('/api/user/update', controller.user.updateUser);
    router.post('/api/user/delete', controller.user.deleteUser);
};
